package com.study.encode;

public class Encode {

    public static void main(String[] args) {
        String s = "a𤋮";


//        char ch2 = '好';
//        char ch = '𤋮';

        char[] array = s.toCharArray();

        for (char c : array) {
            System.out.println(c);
        }


//        System.out.println(s.length());
//        System.out.println(s );


//        try {
//            byte[] bytes = "梁".getBytes("UTF-8");
//            byte[] bytes = .getBytes("UTF-8");
//            '梁'
//            System.out.println(Charset.forName("UTF-8").toString());
//            System.out.println(Arrays.toString(bytes));
//        } catch (UnsupportedEncodingException e) {
//            e.printStackTrace();
//        }
    }
}
